<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RealmView.ascx.cs" Inherits="Realms_Controls_RealmView" %>

<asp:Label runat="server"  ID="lblViewNotice" Visible="false" Text="This realm and its sub realms can only be viewed by you or system administrators." ForeColor="red"  ></asp:Label> 
<br />
<div id="realmTitle">
    <asp:Label runat="server" ID="lblTitle" />
</div>
<div id="realmSummary">
    <asp:Label runat="server" ID="lblRealmSummary" />
    
</div>
<div id="realmDescription">
    <asp:Label runat="server" ID="lblRealmDescription" />
</div>

<div id="realmNodesHeader">
        <asp:HyperLink runat="server" id="lnkDetailView"  Text="Detail View"  Visible="false"  /><br />
      <asp:HyperLink ID="lnkParentNode" Text="Parent" runat="server"   /><br \>&nbsp;
    <asp:Label runat="server" ID="lblSubRealms" Text="Sub Realms:" visible="false" />
</div>
<br />
<div id="SubNodeList">
<asp:DataList runat="server" ID="listSubNodes"  RepeatDirection="Vertical" RepeatColumns="4" Visible="true" >
    <ItemTemplate>
        <asp:HyperLink ID="HyperLink1" Text='<%# Eval("value") %>' runat="server" NavigateUrl='<%# String.Format(@"~/Realms/Realm.aspx?SagaID={0}&RealmID={1}",((PageBase)this.Page).SagaID,  Eval("key")) %>' />,&nbsp;
    </ItemTemplate>
</asp:DataList>
</div>
